<?
session_start();
if(!isset($_SESSION['idUser']))
	exit();

require("includes/constants.php");
require("includes/selectLanguage.php");
require("includes/funciones.inc.php");

?>

<div class="formsPop">
	<form id="horsesPopForm" name="horsesPopForm" method="post">
		<table id="inPopUpN">
			<tbody>
				<tr>
					<td><?=$a_languages['Horses.Name']?></td>
					<td><input id="horseName" name="horseName" type="text"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Horses.YearsOld']?></td>
					<td><input id="horseYears" name="horseYears" type="text"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Horses.Hair']?></td>
					<td><input id="horseHair" name="horseHair" type="text"></td>
				</tr>
				<tr>
					<td><?=$a_languages['Horses.Pretreatments']?></td>
					<td><textarea id="horsePretreatments" name="horsePretreatments"></textarea></td>
				</tr>
				<tr>
					<td><?=$a_languages['Horses.Temperament']?></td>
					<td><input id="horseTemperament" name="horseTemperament" type="text"></td>
				</tr>
				<?if($_SESSION['idTypeUser'] == $idTypeAdministrator){?>
					<tr>
						<td><?=$a_languages['Horses.User']?></td>
						<td><select id="horseUser" name="horseUser"></select></td>
					</tr>
				<?}?>
			</tbody>
		</table>
		<div class="botonesActions">
			<a id="btnExit"><?=$a_languages['Common.Close']?></a>
			<a id="btnSave"><?=$a_languages['Common.Save']?></a>
		</div>
	</form>
</div>

<script>
	$(document).ready(function() {
		$_initPop();
	});
</script>